package com.example.sdemo.app.service.impl;

import com.example.sdemo.app.service.ScoreService;
import com.example.sdemo.app.service.TeacherService;
import com.example.sdemo.domain.entity.Score;
import com.example.sdemo.domain.entity.Teacher;
import com.example.sdemo.infra.mapper.ScoreMapper;
import com.example.sdemo.infra.mapper.TeacherMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ScoreServiceImpl implements ScoreService {
    @Resource
    public ScoreMapper scoreMapper;

    @Override
    public Score selectScoreById(Integer id) {
        return scoreMapper.selectScoreById(id);
    }

    @Override
    public Boolean insertScore(Score score) {
        return scoreMapper.insertScore(score);
    }

    @Override
    public Boolean deleteScore(Integer id) {
        return scoreMapper.deleteScore(id);
    }

    @Override
    public Boolean updateScore(Score score) {
        return scoreMapper.updateScore(score);
    }


}
